#include <iostream>
#include "utils_path.h"

using namespace std;

int main(int argc, char **argv)
{
    if (argc < 2) {
        cerr << "输入参数太少了" << endl;
        return -1;
    }

    for (int i = 1; i < argc; ++i) {
        cout << ">>> " << argv[i] << endl;
        cout << "     Path: " << UtilsGetPath(argv[i]) << endl;
        cout << "      dir: " << UtilsGetDirname(argv[i]) << endl;
        cout << "  filname: " << UtilsGetFilename(argv[i]) << endl;
        cout << " basename: " << UtilsGetBasename(argv[i]) << endl;
        cout << "extension: " << UtilsGetExtension(argv[i]) << endl;
    }

    return 0;
}